//
//  LSYBookManager.h
//  LSYReader
//
//  Created by sam on 2018/3/27.
//  Copyright © 2018年 okwei. All rights reserved.
//
#import "LSYBook.h"
#import "LSYModel.h"
#import "LSYReadModel.h"

#define kBookManagerRefresBooksNoti @"kBookManagerRefresBooksNoti"

@interface LSYBookManager : LSYModel
@property (nonatomic,strong) NSMutableArray *books;

+ (instancetype)manager;

//net book transform to ReadModel
- (void)addNetBook:(LSYBook *)book;
//localbook
- (void)addBook:(LSYReadModel *)book;
- (void)removeBook:(LSYReadModel *)book;
//exit book
- (BOOL)existBook:(LSYReadModel *)book;
//refresh book
- (void)refreshBook:(LSYReadModel *)book;

//save to file
- (void)saveToFile;

@end
